home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / FinderRegistry.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  24.5 KB  |  702 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        FinderRegistry.h
  3.  
  4.      Contains:    Data types for Finder AppleEvents
  5.  
  6.      Version:    Technology:    Mac OS 8
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1985-1997 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __FINDERREGISTRY__
  19. #define __FINDERREGISTRY__
  20.  
  21. #ifndef __AEREGISTRY__
  22. #include <AERegistry.h>
  23. #endif
  24. #ifndef __OSA__
  25. #include <OSA.h>
  26. #endif
  27.  
  28.  
  29.  
  30. #if PRAGMA_ONCE
  31. #pragma once
  32. #endif
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37.  
  38. #if PRAGMA_IMPORT
  39. #pragma import on
  40. #endif
  41.  
  42. #if PRAGMA_STRUCT_ALIGN
  43.     #pragma options align=mac68k
  44. #elif PRAGMA_STRUCT_PACKPUSH
  45.     #pragma pack(push, 2)
  46. #elif PRAGMA_STRUCT_PACK
  47.     #pragma pack(2)
  48. #endif
  49.  
  50.  
  51. /*
  52.   //////////////////////////////////////
  53.    Finder Suite
  54.   //////////////////////////////////////
  55. */
  56.  
  57. /*
  58.    The old Finder Event suite was 'FNDR'
  59.    The new suite is 'fndr'
  60. */
  61.  
  62. enum {
  63.     kAEFinderSuite                = FOUR_CHAR_CODE('fndr')
  64. };
  65.  
  66. /*
  67.   //////////////////////////////////////
  68.    Finder Events
  69.   //////////////////////////////////////
  70. */
  71.  
  72. enum {
  73.     kAECleanUp                    = FOUR_CHAR_CODE('fclu'),
  74.     kAEEject                    = FOUR_CHAR_CODE('ejct'),
  75.     kAEEmpty                    = FOUR_CHAR_CODE('empt'),
  76.     kAEErase                    = FOUR_CHAR_CODE('fera'),
  77.     kAEGestalt                    = FOUR_CHAR_CODE('gstl'),
  78.     kAEPutAway                    = FOUR_CHAR_CODE('ptwy'),
  79.     kAERebuildDesktopDB            = FOUR_CHAR_CODE('rddb'),
  80.     kAESync                        = FOUR_CHAR_CODE('fupd'),
  81.     kAEInterceptOpen            = FOUR_CHAR_CODE('fopn')
  82. };
  83.  
  84. /* "Sort" from the database suite:*/
  85.  
  86. enum {
  87.     kAEDatabaseSuite            = FOUR_CHAR_CODE('DATA'),
  88.     kAESort                        = FOUR_CHAR_CODE('SORT')
  89. };
  90.  
  91. /*
  92.   ////////////////////////////////////////////////////////////////////////
  93.    Classes
  94.    Note: all classes are defined up front so that the property definitions
  95.    can reference classes.
  96.   ////////////////////////////////////////////////////////////////////////
  97. */
  98.  
  99.  
  100. enum {
  101.     cInternalFinderObject        = FOUR_CHAR_CODE('obj ')        /* cReference - used to distinguish objects used inside the Finder only*/
  102. };
  103.  
  104. /*
  105.    Main Finder class definitions
  106.    Indentation implies object model hierarchy
  107. */
  108.  
  109. enum {
  110.                                                                 /* We do not use class cItem from AERegistry.r. Instead our class Item is a cObject //••  BREADCRUMB pmc - WHY??*/
  111.                                                                 /*            cItem                                    = 'citm',        // defined in AERegistry.r*/
  112.                                                                 /*                cFile                                = 'file',    // defined in AERegistry.r*/
  113.     cAliasFile                    = FOUR_CHAR_CODE('alia'),
  114.     cApplicationFile            = FOUR_CHAR_CODE('appf'),
  115.     cControlPanelFile            = FOUR_CHAR_CODE('ccdv'),
  116.     cDeskAccessoryFile            = FOUR_CHAR_CODE('dafi'),
  117.     cDocumentFile                = FOUR_CHAR_CODE('docf'),
  118.     cFontFile                    = FOUR_CHAR_CODE('fntf'),
  119.     cSoundFile                    = FOUR_CHAR_CODE('sndf'),
  120.     cClippingFile                = FOUR_CHAR_CODE('clpf'),
  121.     cContainer                    = FOUR_CHAR_CODE('ctnr'),
  122.     cDesktop                    = FOUR_CHAR_CODE('cdsk'),
  123.     cSharableContainer            = FOUR_CHAR_CODE('sctr'),
  124.     cDisk                        = FOUR_CHAR_CODE('cdis'),
  125.     cFolder                        = FOUR_CHAR_CODE('cfol'),
  126.     cSuitcase                    = FOUR_CHAR_CODE('stcs'),
  127.     cAccessorySuitcase            = FOUR_CHAR_CODE('dsut'),
  128.     cFontSuitcase                = FOUR_CHAR_CODE('fsut'),
  129.     cTrash                        = FOUR_CHAR_CODE('ctrs'),
  130.     cDesktopPrinter                = FOUR_CHAR_CODE('dskp'),
  131.     cContentSpace                = FOUR_CHAR_CODE('dwnd'),        /*                cWindow                                = 'cwin',        // defined in AERegistry.r*/
  132.     cContainerWindow            = FOUR_CHAR_CODE('cwnd'),
  133.     cInfoWindow                    = FOUR_CHAR_CODE('iwnd'),
  134.     cSharingWindow                = FOUR_CHAR_CODE('swnd'),
  135.     cStatusWindow                = FOUR_CHAR_CODE('qwnd'),
  136.     cClippingWindow                = FOUR_CHAR_CODE('lwnd'),
  137.     cPreferencesWindow            = FOUR_CHAR_CODE('pwnd'),
  138.     cDTPWindow                    = FOUR_CHAR_CODE('dtpw'),
  139.     cProcess                    = FOUR_CHAR_CODE('prcs'),
  140.     cAccessoryProcess            = FOUR_CHAR_CODE('pcda'),
  141.     cApplicationProcess            = FOUR_CHAR_CODE('pcap'),
  142.     cGroup                        = FOUR_CHAR_CODE('sgrp'),
  143.     cUser                        = FOUR_CHAR_CODE('cuse'),        /*            cApplication                            = 'capp',        // defined in AERegistry.r*/
  144.     cSharingPrivileges            = FOUR_CHAR_CODE('priv'),
  145.     cPreferences                = FOUR_CHAR_CODE('cprf'),
  146.     cLabel                        = FOUR_CHAR_CODE('clbl'),        /* For use by viewer search engines:*/
  147.     cOnlineDisk                    = FOUR_CHAR_CODE('cods'),
  148.     cOnlineLocalDisk            = FOUR_CHAR_CODE('clds'),
  149.     cOnlineRemoteDisk            = FOUR_CHAR_CODE('crds'),        /* Miscellaneous class definitions*/
  150.     cEntireContents                = FOUR_CHAR_CODE('ects'),        /*•• BREADCRUMB  pmc - also defined in EntireContents.h*/
  151.     cIconFamily                    = FOUR_CHAR_CODE('ifam')
  152. };
  153.  
  154.  
  155. /*
  156.   //////////////////////////////////////
  157.    Properties
  158.   //////////////////////////////////////
  159. */
  160.  
  161. /* Properties of class cItem (really cObject)*/
  162.  
  163. enum {
  164.                                                                 /*    pBounds                                    = 'pbnd',            // defined in AERegistry.r*/
  165.     pComment                    = FOUR_CHAR_CODE('comt'),
  166.     pContainer                    = cContainer,
  167.     pContentSpace                = cContentSpace,
  168.     pCreationDateOld            = FOUR_CHAR_CODE('crtd'),        /* to support pre-Finder 8 scripts*/
  169.     pCreationDate                = FOUR_CHAR_CODE('ascd'),        /* from File Commands OSAX*/
  170.     pDescription                = FOUR_CHAR_CODE('dscr'),
  171.     pDisk                        = cDisk,
  172.     pFolderOld                    = cFolder,                        /* to support pre-Finder 8 scripts*/
  173.     pFolder                        = FOUR_CHAR_CODE('asdr'),        /* from File Commands OSAX*/
  174.     pIconBitmap                    = FOUR_CHAR_CODE('iimg'),        /*    pID                                        = 'ID  ',            // defined in AERegistry.r*/
  175.     pInfoWindow                    = cInfoWindow,
  176.     pKind                        = FOUR_CHAR_CODE('kind'),
  177.     pLabelIndex                    = FOUR_CHAR_CODE('labi'),
  178.     pModificationDateOld        = FOUR_CHAR_CODE('modd'),        /* to support pre-Finder 8 scripts*/
  179.     pModificationDate            = FOUR_CHAR_CODE('asmo'),        /* from File Commands OSAX*/
  180.                                                                 /*    pName                                    = 'pnam',            // defined in AERegistry.r*/
  181.     pPhysicalSize                = FOUR_CHAR_CODE('phys'),
  182.     pPosition                    = FOUR_CHAR_CODE('posn'),
  183.     pIsSelected                    = FOUR_CHAR_CODE('issl'),
  184.     pSize                        = pPointSize,                    /* pPointSize defined in AERegistry.r*/
  185.     pWindow                        = cWindow,
  186.     pPreferencesWindow            = cPreferencesWindow
  187. };
  188.  
  189.  
  190. /* Properties of class cFile (subclass of cItem)*/
  191.  
  192. enum {
  193.     pFileCreator                = FOUR_CHAR_CODE('fcrt'),
  194.     pFileType                    = FOUR_CHAR_CODE('asty'),        /* from File Commands OSAX*/
  195.     pFileTypeOld                = FOUR_CHAR_CODE('fitp'),        /* to support pre-Finder 8 scripts*/
  196.     pIsLocked                    = FOUR_CHAR_CODE('aslk'),        /* from File Commands OSAX*/
  197.     pIsLockedOld                = FOUR_CHAR_CODE('islk'),        /* to support pre-Finder 8 scripts*/
  198.                                                                 /*    pIsStationeryPad                        = 'pspd',            // defined in AERegistry.r                            */
  199.                                                                 /*    pVersion                                = 'vers',            // defined in AERegistry.r*/
  200.     pProductVersion                = FOUR_CHAR_CODE('ver2')
  201. };
  202.  
  203.  
  204. /* Properties of class cAliasFile (subclass of cFile)*/
  205.  
  206. enum {
  207.     pOriginalItem                = FOUR_CHAR_CODE('orig')
  208. };
  209.  
  210. /* Properties of class cApplicationFile (subclass of cFile)*/
  211.  
  212. enum {
  213.     pMinAppPartition            = FOUR_CHAR_CODE('mprt'),
  214.     pAppPartition                = FOUR_CHAR_CODE('appt'),
  215.     pSuggestedAppPartition        = FOUR_CHAR_CODE('sprt'),
  216.     pIsScriptable                = FOUR_CHAR_CODE('isab')
  217. };
  218.  
  219. /*
  220.    Properties of class cControlPanel (Views CP only) (subclass of cFile)
  221.    Note: the other view-like preference settings are not available in the Views
  222.    control panel. These properties are only offered here for backward compatability.
  223.    To set the full range of Finder Preferences, use the Preferences object.
  224. */
  225.  
  226. enum {
  227.     pShowFolderSize                = FOUR_CHAR_CODE('sfsz'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  228.     pShowComment                = FOUR_CHAR_CODE('scom'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  229.     pShowDate                    = FOUR_CHAR_CODE('sdat'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  230.     pShowCreationDate            = FOUR_CHAR_CODE('scda'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  231.     pShowKind                    = FOUR_CHAR_CODE('sknd'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  232.     pShowLabel                    = FOUR_CHAR_CODE('slbl'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  233.     pShowSize                    = FOUR_CHAR_CODE('ssiz'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  234.     pShowVersion                = FOUR_CHAR_CODE('svrs'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  235.     pSortDirection                = FOUR_CHAR_CODE('sord'),
  236.     pShowDiskInfo                = FOUR_CHAR_CODE('sdin'),        /* Always on in Finder 8.0 HIS*/
  237.     pListViewIconSize            = FOUR_CHAR_CODE('lvis'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  238.     pGridIcons                    = FOUR_CHAR_CODE('fgrd'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  239.     pStaggerIcons                = FOUR_CHAR_CODE('fstg'),        /* No longer part of the Finder 8.0 HIS*/
  240.     pViewFont                    = FOUR_CHAR_CODE('vfnt'),
  241.     pViewFontSize                = FOUR_CHAR_CODE('vfsz')
  242. };
  243.  
  244. /* Properties of class cContainer (subclass of cItem)*/
  245.  
  246. enum {
  247.     pCompletelyExpanded            = FOUR_CHAR_CODE('pexc'),
  248.     pContainerWindow            = cContainerWindow,
  249.     pEntireContents                = cEntireContents,
  250.     pExpandable                    = FOUR_CHAR_CODE('pexa'),
  251.     pExpanded                    = FOUR_CHAR_CODE('pexp'),
  252.     pPreviousView                = FOUR_CHAR_CODE('svew'),        /*    pSelection                                = 'sele',        // defined in AERegistry.r*/
  253.     pView                        = FOUR_CHAR_CODE('pvew'),
  254.     pIconSize                    = pListViewIconSize,            /* defined above*/
  255.     pKeepArranged                = FOUR_CHAR_CODE('arrg'),
  256.     pKeepArrangedBy                = FOUR_CHAR_CODE('arby')
  257. };
  258.  
  259. /* Properties of class cDesktop (subclass of cContainer)*/
  260.  
  261. enum {
  262.     pStartupDisk                = FOUR_CHAR_CODE('sdsk'),
  263.     pTrash                        = FOUR_CHAR_CODE('trsh')        /* NOTE can't use cTrash    */
  264. };
  265.  
  266. /* Properties of class cSharableContainer (subclass of cContainer)*/
  267.  
  268. enum {
  269.     pOwner                        = FOUR_CHAR_CODE('sown'),
  270.     pOwnerPrivileges            = FOUR_CHAR_CODE('ownr'),
  271.     pGroup                        = cGroup,
  272.     pGroupPrivileges            = FOUR_CHAR_CODE('gppr'),
  273.     pGuestPrivileges            = FOUR_CHAR_CODE('gstp'),
  274.     pArePrivilegesInherited        = FOUR_CHAR_CODE('iprv'),
  275.     pExported                    = FOUR_CHAR_CODE('sexp'),
  276.     pMounted                    = FOUR_CHAR_CODE('smou'),
  277.     pSharingProtection            = FOUR_CHAR_CODE('spro'),
  278.     pSharing                    = FOUR_CHAR_CODE('shar'),
  279.     pSharingWindow                = cSharingWindow
  280. };
  281.  
  282. /* Properties of class cDisk (subclass of cSharableContainer)*/
  283.  
  284. enum {
  285.     pCapacity                    = FOUR_CHAR_CODE('capa'),
  286.     pEjectable                    = FOUR_CHAR_CODE('isej'),
  287.     pFreeSpace                    = FOUR_CHAR_CODE('frsp'),
  288.     pLocal                        = FOUR_CHAR_CODE('isrv'),
  289.     pIsStartup                    = FOUR_CHAR_CODE('istd')
  290. };
  291.  
  292. /* Properties of class cTrash (subclass of cSharableContainer)*/
  293.  
  294. enum {
  295.     pWarnOnEmpty                = FOUR_CHAR_CODE('warn')
  296. };
  297.  
  298. /* Properties of class cWindow (subclass of cContentSpace)*/
  299.  
  300. enum {
  301.                                                                 /*    pBounds                                    = 'pbnd',        // defined in AERegistry.r*/
  302.                                                                 /*    pHasCloseBox                            = 'hclb',        // defined in AERegistry.r*/
  303.                                                                 /*    pIsFloating                                = 'isfl',        // defined in AERegistry.r*/
  304.                                                                 /*    pIndex                                    = 'pidx',        // defined in AERegistry.r*/
  305.                                                                 /*    pIsModal                                = 'pmod',        // defined in AERegistry.r*/
  306.                                                                 /*    pPosition                                = 'posn',        // defined above*/
  307.                                                                 /*    pIsResizable                            = 'prsz',        // defined in AERegistry.r*/
  308.                                                                 /*    pHasTitleBar                            = 'ptit',        // defined in AERegistry.r*/
  309.                                                                 /*    pVisible                                = 'pvis',        // defined in AERegistry.r*/
  310.                                                                 /*    pIsZoomable                                = 'iszm',        // defined in AERegistry.r*/
  311.                                                                 /*    pIsZoomed                                = 'pzum',        // defined in AERegistry.r*/
  312.     pIsZoomedFull                = FOUR_CHAR_CODE('zumf'),
  313.     pIsPopup                    = FOUR_CHAR_CODE('drwr'),
  314.     pIsPulledOpen                = FOUR_CHAR_CODE('pull'),        /* only applies to popup windows*/
  315.     pIsCollapsed                = FOUR_CHAR_CODE('wshd')        /* only applies to normal windows*/
  316. };
  317.  
  318. /* Properties of class cContainerWindow (subclass of cWindow)*/
  319.  
  320. enum {
  321.     pObject                        = cObject
  322. };
  323.  
  324. /* Properties of class cSharingWindow (subclass of cWindow)*/
  325.  
  326. enum {
  327.     pSharableContainer            = cSharableContainer
  328. };
  329.  
  330. /* Properties of networking support*/
  331.  
  332. enum {
  333.     pFileShareOn                = FOUR_CHAR_CODE('fshr'),
  334.     pFileShareStartingUp        = FOUR_CHAR_CODE('fsup'),
  335.     pProgramLinkingOn            = FOUR_CHAR_CODE('iac ')
  336. };
  337.  
  338. /* Properties of class cPreferencesWindow (subclass of cWindow)*/
  339.  
  340. enum {
  341.                                                                 /*    pShowFolderSize                            = 'sfsz',            // defined above for Views CP*/
  342.                                                                 /*    pShowComment                            = 'scom',            // defined above for Views CP*/
  343.     ShowModificationDate        = pShowDate,                    /* pShowDate defined above for Views CP*/
  344.                                                                 /*    pShowKind                                = 'sknd',            // defined above for Views CP*/
  345.                                                                 /*    pShowLabel                                = 'slbl',            // defined above for Views CP*/
  346.                                                                 /*    pShowSize                                = 'ssiz',            // defined above for Views CP*/
  347.                                                                 /*    pShowVersion                            = 'svrs',            // defined above for Views CP*/
  348.                                                                 /*    pShowCreationDate                        = 'scda',            // Removed from Finder 8.0 HIS*/
  349.                                                                 /*    pShowFileType                            = 'sfty',            // Removed from Finder 8.0 HIS*/
  350.                                                                 /*    pShowFileCreator                        = 'sfcr',            // Removed from Finder 8.0 HIS*/
  351.                                                                 /*    pListViewIconSize                        = 'lvis',            // defined above for Views CP*/
  352.                                                                 /*    pGridIcons                                = 'fgrd',            // defined above for Views CP*/
  353.                                                                 /*    pStaggerIcons                            = 'fstg',            // defined above for Views CP*/
  354.                                                                 /*    pViewFont                                = 'vfnt',            // defined above for Views CP*/
  355.                                                                 /*    pViewFontSize                            = 'vfsz',            // defined above for Views CP*/
  356.     pUseRelativeDate            = FOUR_CHAR_CODE('urdt'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  357.     pDelayBeforeSpringing        = FOUR_CHAR_CODE('dela'),
  358.     pSpringOpenFolders            = FOUR_CHAR_CODE('sprg'),
  359.     pUseShortMenus                = FOUR_CHAR_CODE('usme'),
  360.     pUseWideGrid                = FOUR_CHAR_CODE('uswg'),
  361.     pLabel1                        = FOUR_CHAR_CODE('lbl1'),
  362.     pLabel2                        = FOUR_CHAR_CODE('lbl2'),
  363.     pLabel3                        = FOUR_CHAR_CODE('lbl3'),
  364.     pLabel4                        = FOUR_CHAR_CODE('lbl4'),
  365.     pLabel5                        = FOUR_CHAR_CODE('lbl5'),
  366.     pLabel6                        = FOUR_CHAR_CODE('lbl6'),
  367.     pLabel7                        = FOUR_CHAR_CODE('lbl7')        /*    pObject                                    = cObject            // defined above*/
  368. };
  369.  
  370. /* Properties of class cProcess (subclass of cObject)*/
  371.  
  372. enum {
  373.                                                                 /*    pName                                    = 'pnam',            // defined in AERegistry.r*/
  374.     pFile                        = cFile,                        /*    pCreatorType                            = 'fcrt',            // defined above*/
  375.                                                                 /*    pFileType                                = 'asty',            // defined above*/
  376.                                                                 /*    pIsFrontProcess                            = 'pisf',            // defined in AERegistry.r*/
  377.                                                                 /*    pAppPartition                            = 'appt',            // defined above*/
  378.     pPartitionSpaceUsed            = FOUR_CHAR_CODE('pusd'),        /*    pIsScriptable                            = 'isab',            // defined in AERegistry.r*/
  379.                                                                 /*    pVisible                                = 'pvis'            // defined in AERegistry.r*/
  380.     pLocalAndRemoteEvents        = FOUR_CHAR_CODE('revt')
  381. };
  382.  
  383. /* Properties of class cAccessoryProcess (subclass of cProcess)*/
  384.  
  385. enum {
  386.     pDeskAccessoryFile            = cDeskAccessoryFile
  387. };
  388.  
  389. /* Properties of class cApplicationProcess (subclass of cProcess)*/
  390.  
  391. enum {
  392.     pApplicationFile            = cApplicationFile
  393. };
  394.  
  395.  
  396. /* Properties of class cUser (subclass of cObject)*/
  397.  
  398. enum {
  399.                                                                 /*    pBounds*/
  400.                                                                 /*    pIconBitmap*/
  401.                                                                 /*    pLabelIndex*/
  402.                                                                 /*    pName*/
  403.                                                                 /*    pPosition*/
  404.                                                                 /*    pWindow                                    = cWindow,            // defined above*/
  405.     pCanConnect                    = FOUR_CHAR_CODE('ccon'),
  406.     pCanChangePassword            = FOUR_CHAR_CODE('ccpw'),
  407.     pCanDoProgramLinking        = FOUR_CHAR_CODE('ciac'),
  408.     pIsOwner                    = FOUR_CHAR_CODE('isow'),
  409.     pARADialIn                    = FOUR_CHAR_CODE('arad'),
  410.     pShouldCallBack                = FOUR_CHAR_CODE('calb'),
  411.     pCallBackNumber                = FOUR_CHAR_CODE('cbnm')
  412. };
  413.  
  414. /*
  415.    Properties of class cApplication (subclass of cObject)
  416.    NOTE: properties for the special folders must match their respective kXXXFolderType constants
  417. */
  418.  
  419. enum {
  420.     pAboutMacintosh                = FOUR_CHAR_CODE('abbx'),
  421.     pAppleMenuItemsFolder        = FOUR_CHAR_CODE('amnu'),        /* kAppleMenuFolderType*/
  422.                                                                 /*    pClipboard                                = 'pcli',            // defined in AERegistry.r*/
  423.     pControlPanelsFolder        = FOUR_CHAR_CODE('ctrl'),        /* kControlPanelFolderType*/
  424.     pDesktop                    = FOUR_CHAR_CODE('desk'),        /* kDesktopFolderType*/
  425.     pExtensionsFolder            = FOUR_CHAR_CODE('extn'),        /* kExtensionFolderType*/
  426.                                                                 /*    pFileShareOn                            = 'fshr',            // defined above*/
  427.     pFinderPreferences            = FOUR_CHAR_CODE('pfrp'),
  428.     pFontsFolder                = FOUR_CHAR_CODE('ffnt'),        /*    pIsFrontProcess                            = 'pisf',            // defined in AERegistry.r*/
  429.                                                                 /*    pInsertionLoc                            = 'pins',            // defined in AERegistry.r*/
  430.     pLargestFreeBlock            = FOUR_CHAR_CODE('mfre'),
  431.     pPreferencesFolder            = FOUR_CHAR_CODE('pref'),        /* kPreferencesFolderType*/
  432.                                                                 /*    pProductVersion                            = 'ver2',            // defined above*/
  433.                                                                 /*    pUserSelection                            = 'pusl',            // defined in AERegistry.r*/
  434.                                                                 /*    pFileShareStartingUp                    = 'fsup',            // defined above*/
  435.     pShortCuts                    = FOUR_CHAR_CODE('scut'),
  436.     pShutdownFolder                = FOUR_CHAR_CODE('shdf'),
  437.     pStartupItemsFolder            = FOUR_CHAR_CODE('strt'),        /* kStartupFolderType*/
  438.     pSystemFolder                = FOUR_CHAR_CODE('macs'),        /* kSystemFolderType*/
  439.     pTemporaryFolder            = FOUR_CHAR_CODE('temp'),        /* kTemporaryFolderType*/
  440.                                                                 /*    pVersion                                = 'vers',            // defined in AERegistry.r*/
  441.     pViewPreferences            = FOUR_CHAR_CODE('pvwp'),        /*    pVisible                                = 'pvis',            // defined in AERegistry.r*/
  442.     pStartingUp                    = FOUR_CHAR_CODE('awak')        /* private property to tell whether the Finder is fully up and running*/
  443. };
  444.  
  445. /* Properties of class cSharingPrivileges (subclass of cObject)*/
  446.  
  447. enum {
  448.     pSeeFiles                    = FOUR_CHAR_CODE('prvr'),
  449.     pSeeFolders                    = FOUR_CHAR_CODE('prvs'),
  450.     pMakeChanges                = FOUR_CHAR_CODE('prvw')
  451. };
  452.  
  453. /*
  454.    Properties of class cPreferences (subclass of cObject)
  455.   enum {
  456.       pShowFolderSize                            = 'sfsz',            // defined above for Views CP
  457.       pShowComment                            = 'scom',            // defined above for Views CP
  458.       pShowModificationDate                    = pShowDate,            // pShowDate defined above for Views CP
  459.       pShowKind                                = 'sknd',            // defined above for Views CP
  460.       pShowLabel                                = 'slbl',            // defined above for Views CP
  461.       pShowSize                                = 'ssiz',            // defined above for Views CP
  462.       pShowVersion                            = 'svrs',            // defined above for Views CP
  463.       pShowCreationDate                        = 'scda',            // defined in cPreferencesWindow
  464.       pShowFileType                            = 'sfty',            // defined in cPreferencesWindow
  465.       pShowFileCreator                        = 'sfcr',            // defined in cPreferencesWindow
  466.       pListViewIconSize                        = 'lvis',            // defined above for Views CP
  467.       pGridIcons                                = 'fgrd',            // defined above for Views CP
  468.       pStaggerIcons                            = 'fstg',            // defined above for Views CP
  469.       pViewFont                                = 'vfnt',            // defined above for Views CP
  470.       pViewFontSize                            = 'vfsz',            // defined above for Views CP
  471.       pUseRelativeDate                        = 'urdt',            // defined in cPreferencesWindow
  472.       pDelayBeforeSpringing                    = 'dela',            // defined in cPreferencesWindow
  473.       pShowMacOSFolder                        = 'sosf',            // defined in cPreferencesWindow
  474.       pUseShortMenus                            = 'usme',            // defined in cPreferencesWindow
  475.       pUseCustomNewMenu                        = 'ucnm',            // defined in cPreferencesWindow
  476.       pShowDesktopInBackground                = 'sdtb',            // defined in cPreferencesWindow
  477.       pActivateDesktopOnClick                    = 'adtc',            // defined in cPreferencesWindow
  478.       pLabel1                                    = 'lbl1',            // defined in cPreferencesWindow
  479.       pLabel2                                    = 'lbl2',            // defined in cPreferencesWindow
  480.       pLabel3                                    = 'lbl3',            // defined in cPreferencesWindow
  481.       pLabel4                                    = 'lbl4',            // defined in cPreferencesWindow
  482.       pLabel5                                    = 'lbl5',            // defined in cPreferencesWindow
  483.       pLabel6                                    = 'lbl6',            // defined in cPreferencesWindow
  484.       pLabel7                                    = 'lbl7',            // defined in cPreferencesWindow
  485.       pWindow                                    = cWindow            // defined above
  486.   };
  487. */
  488.  
  489. /*
  490.    Properties of class cLabel (subclass of cObject)
  491.   enum {
  492.       pName                                    = 'pnam',            // defined in AERegistry.r
  493.       pColor                                    = 'colr',            // defined in AERegistry.r
  494.   };
  495. */
  496.  
  497. /* Misc Properties*/
  498.  
  499. enum {
  500.     pSmallIcon                    = FOUR_CHAR_CODE('smic'),
  501.     pSmallButton                = FOUR_CHAR_CODE('smbu'),
  502.     pLargeButton                = FOUR_CHAR_CODE('lgbu'),
  503.     pGrid                        = FOUR_CHAR_CODE('grid')
  504. };
  505.  
  506. /*
  507.   //////////////////////////////////////
  508.    Enumerations defined by the Finder
  509.   //////////////////////////////////////
  510. */
  511.  
  512.  
  513. enum {
  514.     enumViewBy                    = FOUR_CHAR_CODE('vwby'),
  515.     enumGestalt                    = FOUR_CHAR_CODE('gsen'),
  516.     enumConflicts                = FOUR_CHAR_CODE('cflc'),
  517.     enumExistingItems            = FOUR_CHAR_CODE('exsi'),
  518.     enumOlderItems                = FOUR_CHAR_CODE('oldr')
  519. };
  520.  
  521.  
  522. enum {
  523.     enumDate                    = FOUR_CHAR_CODE('enda'),
  524.     enumAnyDate                    = FOUR_CHAR_CODE('anyd'),
  525.     enumToday                    = FOUR_CHAR_CODE('tday'),
  526.     enumYesterday                = FOUR_CHAR_CODE('yday'),
  527.     enumThisWeek                = FOUR_CHAR_CODE('twek'),
  528.     enumLastWeek                = FOUR_CHAR_CODE('lwek'),
  529.     enumThisMonth                = FOUR_CHAR_CODE('tmon'),
  530.     enumLastMonth                = FOUR_CHAR_CODE('lmon'),
  531.     enumThisYear                = FOUR_CHAR_CODE('tyer'),
  532.     enumLastYear                = FOUR_CHAR_CODE('lyer'),
  533.     enumBeforeDate                = FOUR_CHAR_CODE('bfdt'),
  534.     enumAfterDate                = FOUR_CHAR_CODE('afdt'),
  535.     enumBetweenDate                = FOUR_CHAR_CODE('btdt'),
  536.     enumOnDate                    = FOUR_CHAR_CODE('ondt')
  537. };
  538.  
  539.  
  540. enum {
  541.     enumAllDocuments            = FOUR_CHAR_CODE('alld'),
  542.     enumFolders                    = FOUR_CHAR_CODE('fold'),
  543.     enumAliases                    = FOUR_CHAR_CODE('alia'),
  544.     enumStationery                = FOUR_CHAR_CODE('stat')
  545. };
  546.  
  547.  
  548. enum {
  549.     enumWhere                    = FOUR_CHAR_CODE('wher'),
  550.     enumAllLocalDisks            = FOUR_CHAR_CODE('aldk'),
  551.     enumAllRemoteDisks            = FOUR_CHAR_CODE('ardk'),
  552.     enumAllDisks                = FOUR_CHAR_CODE('alld'),
  553.     enumAllOpenFolders            = FOUR_CHAR_CODE('aofo')
  554. };
  555.  
  556.  
  557.  
  558. enum {
  559.     enumIconSize                = FOUR_CHAR_CODE('isiz'),
  560.     enumSmallIconSize            = pSmallIcon,
  561.     enumMiniIconSize            = FOUR_CHAR_CODE('miic'),
  562.     enumLargeIconSize            = FOUR_CHAR_CODE('lgic')
  563. };
  564.  
  565.  
  566. enum {
  567.     enumSortDirection            = FOUR_CHAR_CODE('sodr'),
  568.     enumSortDirectionNormal        = FOUR_CHAR_CODE('snrm'),
  569.     enumSortDirectionReverse    = FOUR_CHAR_CODE('srvs')
  570. };
  571.  
  572. /*
  573.   //////////////////////////////////////
  574.    Types defined by the Finder
  575.   //////////////////////////////////////
  576. */
  577.  
  578.  
  579. enum {
  580.     typeIconFamily                = cIconFamily,                    /* An AEList of typeIconAndMask, type8BitIcon, & c.*/
  581.     typeIconAndMask                = FOUR_CHAR_CODE('ICN#'),
  582.     type8BitIcon                = FOUR_CHAR_CODE('icl8'),
  583.     type4BitIcon                = FOUR_CHAR_CODE('icl4'),
  584.     typeSmallIconAndMask        = FOUR_CHAR_CODE('ics#'),
  585.     typeSmall8BitIcon            = FOUR_CHAR_CODE('ics8'),
  586.     typeSmall4BitIcon            = FOUR_CHAR_CODE('ics4'),
  587.     typeRelativeTime            = FOUR_CHAR_CODE('rtim'),
  588.     typeConceptualTime            = FOUR_CHAR_CODE('timc')
  589. };
  590.  
  591. /*
  592.   //////////////////////////////////////
  593.    Keywords defined by the Finder
  594.   //////////////////////////////////////
  595. */
  596.  
  597.  
  598. enum {
  599.     keyIconAndMask                = FOUR_CHAR_CODE('ICN#'),
  600.     key8BitIcon                    = FOUR_CHAR_CODE('icl8'),
  601.     key4BitIcon                    = FOUR_CHAR_CODE('icl4'),
  602.     keySmallIconAndMask            = FOUR_CHAR_CODE('ics#'),
  603.     keySmall8BitIcon            = FOUR_CHAR_CODE('ics8'),
  604.     keySmall4BitIcon            = FOUR_CHAR_CODE('ics4'),
  605.     keyAEUsing                    = FOUR_CHAR_CODE('usin'),
  606.     keyAEReplacing                = FOUR_CHAR_CODE('alrp'),
  607.     keyAENoAutoRouting            = FOUR_CHAR_CODE('rout'),
  608.     keyLocalPositionList        = FOUR_CHAR_CODE('mvpl'),
  609.     keyGlobalPositionList        = FOUR_CHAR_CODE('mvpg')
  610. };
  611.  
  612. /*
  613.   //////////////////////////////////////
  614.    New prepositions used by the Finder
  615.   //////////////////////////////////////
  616. */
  617.  
  618.  
  619. enum {
  620.     keyASPrepositionHas            = FOUR_CHAR_CODE('has '),
  621.     keyAll                        = FOUR_CHAR_CODE('kyal'),
  622.     keyOldFinderItems            = FOUR_CHAR_CODE('fsel')
  623. };
  624.  
  625. /*
  626.   //////////////////////////////////////
  627.    New key forms used by the Finder
  628.   //////////////////////////////////////
  629. */
  630.  
  631.  
  632. enum {
  633.     formAlias                    = typeAlias,
  634.     formCreator                    = pFileCreator
  635. };
  636.  
  637.  
  638. /*
  639.   //////////////////////////////////////
  640.    Finder error codes
  641.   //////////////////////////////////////
  642. */
  643.  
  644.  
  645. enum {
  646.     errFinderIsBusy                = -15260,
  647.     errFinderWindowNotOpen        = -15261,
  648.     errFinderCannotPutAway        = -15262,
  649.     errFinderWindowMustBeIconView = -15263,                        /* RequireWindowInIconView*/
  650.     errFinderWindowMustBeListView = -15264,                        /* RequireWindowInListView*/
  651.     errFinderCantMoveToDestination = -15265,
  652.     errFinderCantMoveSource        = -15266,
  653.     errFinderCantOverwrite        = -15267,
  654.     errFinderIncestuousMove        = -15268,                        /* Could just use errFinderCantMoveSource*/
  655.     errFinderCantMoveToAncestor    = -15269,                        /* Could also use errFinderCantMoveSource*/
  656.     errFinderCantUseTrashedItems = -15270,
  657.     errFinderItemAlreadyInDest    = -15271,                        /* Move from folder A to folder A*/
  658.     errFinderUnknownUser        = -15272,                        /* Includes unknown group*/
  659.     errFinderSharePointsCantInherit = -15273,
  660.     errFinderWindowWrongType    = -15274,
  661.     errFinderPropertyNowWindowBased = -15275,
  662.     errFinderCorruptOpenFolderList = -15276,
  663.     errFinderNoInvisibleFiles    = -15277,
  664.     errFinderBoundsWrong        = -15278,
  665.     errAEValueOutOfRange        = -15279,
  666.     errFinderPropertyDoesNotApply = -15280,
  667.     errFinderFileSharingMustBeOn = -15281,
  668.     errFinderMustBeActive        = -15282,
  669.     errFinderVolumeNotFound        = -15283,                        /* more descriptive than what we get with nsvErr*/
  670.     errFinderLockedItemsInTrash    = -15284,                        /* there are some locked items in the trash*/
  671.     errFinderOnlyLockedItemsInTrash = -15285,                    /* all the items (except folders) in the trash are locked*/
  672.     errFinderProgramLinkingMustBeOn = -15286,
  673.     errFinderLastReserved        = -15379
  674. };
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682. #if PRAGMA_STRUCT_ALIGN
  683.     #pragma options align=reset
  684. #elif PRAGMA_STRUCT_PACKPUSH
  685.     #pragma pack(pop)
  686. #elif PRAGMA_STRUCT_PACK
  687.     #pragma pack()
  688. #endif
  689.  
  690. #ifdef PRAGMA_IMPORT_OFF
  691. #pragma import off
  692. #elif PRAGMA_IMPORT
  693. #pragma import reset
  694. #endif
  695.  
  696. #ifdef __cplusplus
  697. }
  698. #endif
  699.  
  700. #endif /* __FINDERREGISTRY__ */
  701.  
  702.